package com.hopu.oa.service.work;

import com.hopu.oa.dao.user.UserDao;
import com.hopu.oa.entity.work.workDept;
import com.hopu.oa.entity.work.worker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class workerServiceImpl implements workerService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<workDept> selectDept() {
        return userDao.selectDept();
    }

    @Override
    public List<worker> selectAllWoker(Integer page, Integer size, String deptName, String find) {
        return userDao.selectAllWoker(page, size, deptName, find);
    }
}
